// JavaScript Document
function GetObject(object) {
    return document.getElementById(object);
}
function ResizeLoginBox() {
    var height = document.documentElement.clientHeight - 90;
    //alert(height);
    if (height < 450) {
        document.getElementById("LoginBox").style.height = "450px";
    }
    else {
        document.getElementById("LoginBox").style.height = height + "px";
    }
}
function ResizeIndex() {
    var height = document.documentElement.clientHeight - 160;
    var width = document.documentElement.clientWidth - 220;
    //alert(height);
    if (height < 460) {
        $(".RightMain").css("height", "460px");
        $(".LeftMenu").css("height", "460px");
    }
    else {
        $(".RightMain").css("height", height + "px");
        $(".LeftMenu").css("height", height + "px");
    }

    if (width < 645) {
        $(".RightMain").css("width", "645px");
    }
    else {
        $(".RightMain").css("width", width + "px");
    }
}
function ResizeDefault() {
    var width = document.documentElement.clientWidth;
    if (width < 745) {
        $(".Main").css("width", "745px");
    }
    else {
        $(".Main").css("width", width + "px");
    }
}

function ResizeCommonFrm() {
    var height = document.documentElement.clientHeight;
    var width = document.documentElement.clientWidth;
    //alert(height);
    if (height > 300) {
        $(".CommonFrm").css("height", "300px");
    }
    else {
        $(".CommonFrm").css("height", height + "px");
    }

    if (width > 600) {
        $(".CommonFrm").css("width", "600px");
    }
    else {
        $(".CommonFrm").css("width", width + "px");
    }
}
